﻿using Model.BusinessModel.OutPut.sys;
using Model.DomainModel.Sys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Infrastructure.IRepository.Sys
{
    /// <summary>
    /// 系统仓储接口
    /// </summary>
    public interface ISysSystemRepository : IRepository<SysSystem>
    {
        /// <summary>
        /// 获取项目系统
        /// </summary>
        /// <param name="corporationKey">公司key</param>
        /// <returns></returns>
        List<SysSystemOutPut> GetSystemList(string? corporationKey, string? authWhere);

        /// <summary>
        /// 根据系统名称和编码，获取系统数据
        /// </summary>
        /// <param name="name">系统名称</param>
        /// <param name="code">系统编码</param>
        /// <returns>返回指定数据</returns>
        List<SysSystem> GetSystemMsg(string? name, string? code);

        /// <summary>
        /// 设置系统是否启用
        /// </summary>
        /// <param name="keys">key集合</param>
        /// <param name="isOpen">是否启用</param>
        void SetSystemIsOpen(List<string> corporationKeys, bool isOpen);
    }
}
